package com.ca.project.Server.Modules.RotatingChat.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

/**
 * 
 * @TableName rotatingchat
 */
@TableName(value ="rotatingchat")
@Data
public class Rotatingchat implements Serializable {
    /**
     * 轮播图创建id
     */
    @TableId(value = "id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 图片名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 上传的key值
     */
    @TableField(value = "r_key")
    private String rKey;

    /**
     * 轮播图地址
     */
    @TableField(value = "url")
    private String url;

    /**
     * 图片所属
     */
    @TableField(value = "cover")
    private Integer cover;

    /**
     * 轮播图状态
     */
    @TableField(value = "state")
    private Integer state;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}